#include<stdio.h>

int main()
{
	int a,b;
	while(EOF != scanf("%d %d",&a, &b)){
		printf("1 %d\n",a);
	}
	return 0;
}
